package com.example.controller;


import com.example.service.IUser_detailsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ${author}
 * @since 2024-06-01
 */
@RestController
@RequestMapping("/users")
public class User_detailsController {
    @Resource
    private IUser_detailsService iUserDetailsService;

    @GetMapping("coins")
    public void czCoins(@RequestParam("coins") Integer coins,@RequestParam("uid") Integer uid){
        iUserDetailsService.czCoins(coins,uid);
    }
}

